package server.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import server.business.pojo.BloodInBoundData;
import server.business.vo.Result;
import server.business.vo.ResultExpand;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface BloodInBoundService extends IService<BloodInBoundData> {

    IPage<BloodInBoundData> selectByPage(int currentPage, int limit);

    List<BloodInBoundData> queryData();

    Result addBloodInBound(String json);

    ResultExpand searchBloodInBound(HttpServletRequest request, HttpServletResponse response);

    Result reviewBloodInBound(HttpServletRequest request, HttpServletResponse response);

    Result cancelBloodInBound(HttpServletRequest request, HttpServletResponse response);

    Result getBloodInformation(HttpServletRequest request, HttpServletResponse response);

    void downloadExcel(HttpServletRequest request, HttpServletResponse response);


    /**
     * fzx
     * @param bloodId
     * @return
     */
    List<Map<String, Object>> getBloodInList(String bloodId);
}
